import axiosService from "@/utils/request.js"

export function ojQuestionPageListService(data) {
    return axiosService({
        url: "/project/oj/page-list",
        method: "post",
        data: data
    })
}

export function ojQuestionDetailService(param) {
    return axiosService({
        url: "/project/oj/detail",
        method: "get",
        params: {
            id: param
        }
    })
}

export function ojQuestionPrevDetailService(param) {
    return axiosService({
        url: "/project/oj/prev-detail",
        method: "get",
        params: {
            id: param
        }
    })
}

export function ojQuestionNextDetailService(param) {
    return axiosService({
        url: "/project/oj/next-detail",
        method: "get",
        params: {
            id: param
        }
    })
}

export function ojQuestionHotListService() {
    return axiosService({
        url: "/project/oj/hot-list",
        method: "post"
    })
}

export function ojQuestionSubmitCodeByRocketMQService(data) {
    return axiosService({
        url: "/project/oj/submit-code/by-rocketmq",
        method: "post",
        data: data
    })
}

export function ojQuestionExecuteResultService(data) {
    return axiosService({
        url: "/project/oj/execute-result",
        method: "post",
        data: data
    })
}